Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > Snow

Main.Snow History

Show minor edits - Show changes to markup

February 02, 2005, at 11:49 PM by bjarne
Added lines 1-56:

Let it snow, let it snow, let it snow... , tutorial

There are a million tutorials on making it rain... this one is to make it... SNOW!

I'm presupposing that you have a script file for your map, if not look at this tutorial ( Thanx to Nemesis ) or at any other tutorial on creating your own script.

Then create a rainfall. Multiple tutorials on this everywhere, like this tutorial ( Thanx to Innkeeper ) for example.

In Innkeepers tutorial above, he inserts the following code in the script file:


 exec global/weather.scr
 exec global/ambient.scr m5l1b

This is a good idea if you whant rain/thunder/flash/lightning wich is what the global/weather.scr script produces. This is not so nice for creating our friendly snowy feeling...

...instead, enter this in your stript file:


 //The snow
 level.rain_speed = "32"
 level.rain_speed_vary = "16"
 level.rain_length = "2"
 level.rain_width = "1"
 level.rain_density = ".2"
 level.rain_slant = "250"
 level.rain_min_dist = "1800"
 level.rain_numshaders = 12
 level.rain_shader = "textures/snow7"

...to create snow. It is more accurate to say that this changes

the rainfall to behave and look like snowfall, than to say that

it creates snow. Experiment with the values to see the effects (

The values here are "stolen" from level 6 in the single

player game. Except the rain_shader that was originally

"textures/snow0" ) if the result is not satisfactory.

...if you whant some nice ambient outdoor snow sound for that,

I recommend these lines:


 //Soundtrack
 exec global/ambient.scr m6l1a

Tadaaa! Instant christmas spirit!

- Bjarne

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on February 02, 2005, at 11:51 PM